# -*- encoding: utf-8 -*-

from Common.mysql import db, ma


# 新建表case_data
class BugDataHistory(db.Model):
    __tablename__ = 'bug_data_history'  # 数据库名称
    id = db.Column(db.Integer, primary_key=True)
    bug_id = db.Column(db.String(64))
    update_key = db.Column(db.String(255))
    update_time = db.Column(db.DATETIME)
    update_user = db.Column(db.String(64))


class BugDataHistorySchema(ma.SQLAlchemyAutoSchema):
    class Meta:
        model = BugDataHistory
